
// 机构的接口
import {
    axiosPostJson,
    axiosPostJson_select,
    axiosGetJson,
    axiosGetFrom
  } from "@/utils/service";
  import qs from "qs";
  
  
  // 分页查询
  export function select_resourceAddObj(data) {
      return axiosPostJson_select("/admin-server/sys/resource/page", data);
  }

  // 添加
  export function add_resourceAddObj(data) {
      return axiosPostJson("/admin-server/sys/resource/create", data);
  }

  // 修改 
  export function update_resourceAddObj(data) {
    return axiosPostJson("/admin-server/sys/resource/updateById", data);
  }

  // 删除
  export function delete_resourceAddObj(data) {
      return axiosGetJson("/admin-server/sys/resource/deleteById", data);
  }